<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<h:head><title>Lista Voli</title></h:head>
<h:body>
<h:form>  
    <p:dataTable id="dataTable" var="list" value="#{ProdottiBase.listaVolo()}" widgetVar="voloTable"   
            emptyMessage="Nessun Volo Trovato" filteredValue="#{ProdottiBase.selectedVolo}">  
           
         <!--    
         <f:facet name="header">  
            <p:outputPanel>  
                <h:outputText value="Cerca:" />  
                <p:inputText id="globalFilter" onkeyup="voloTable.filter()" style="width:150px" />  
            </p:outputPanel>  
        </f:facet> 
        --> 
        
        <p:column id="partenzaColumn" filterBy="luogoPartenza"   
                headerText="Partenza" footerText="contains"  
                filterMatchMode="contains">  
            <h:outputText value="#{list.luogoPartenza}" />  
        </p:column>  

        <p:column id="arrivoColumn" filterBy="luogoArrivo"   
                headerText="Arrivo" footerText="contains"  
                filterMatchMode="contains">  
            <h:outputText value="#{list.luogoArrivo}" />  
        </p:column>  
        
         <p:column id="orarioPColumn" filterBy="orarioPartenza"   
                headerText="Orario Partenza" footerText="contains"  
                filterMatchMode="contains">  
            <h:outputText value="#{list.orarioPartenza}" />  
        </p:column>

         <p:column id="orarioAColumn" filterBy="orarioArrivo"   
                headerText="Orario Arrivo" footerText="contains"  
                filterMatchMode="contains">  
            <h:outputText value="#{list.orarioArrivo}" />  
        </p:column>       
	  <p:column>
	    <a href="modifica_prodotto_base/modifica_volo.xhtml?idv=#{list.id}">Modifica</a>
	  </p:column>
	</p:dataTable>
</h:form>

</h:body>
</html>